package com.timkj.zgyd.utils;

import com.timkj.zgyd.entity.ResultVO;
import com.timkj.zgyd.enums.ResultEnums;

/**
 * @author : liji
 * @date : 2020-09-01 14:02
 */
public class  ResultVOUtil {

    public ResultVO success(Object object){
        return new ResultVO(ResultEnums.SUCCESS,object);
    }

    public ResultVO getOpenidError(Object object){
        return new ResultVO(ResultEnums.GetOpenId_ERROR,object);
    }

    public ResultVO unkownError(Object object){
        return new ResultVO(ResultEnums.UNKNOWN_ERROR,object);
    }

    public ResultVO orderError(Object object){
        return new ResultVO(ResultEnums.Order_ERROR,object);
    }

    public ResultVO noOrderError(Object object){
        return new ResultVO(ResultEnums.NoOrder_ERROR,object);
    }

    public ResultVO endOrderError(Object object){return new ResultVO(ResultEnums.endOrder_ERROR,object);}
}
